	res=1;
	delay_ms(10);
	res=0;
	delay_ms(50);
	res=1;
	delay_ms(10);
	
	
	write_com(0x20);	//// 0 0 1 0 0 0 IS2 IS1        select instruction table  Default Instruction Table IS[1:0]=00
	write_com(0x01);	// 0 0 0 0 0 0 0 1 		    Clear Display
	delay_ms(100);
	write_com(0x90);	// 1 0 0 1 0 0 0 0			Set DDRAM address into AC (address counter). 
	write_com(0x00);	//0 AC6-0
	write_com(0x06);	// 0 0 0 0 0 1 I/D S 
	write_com(0x0c);	// 0 0 0 0 1 D C B  			Display Control
//==================================
	write_com(0x21);	// 0 0 1 0 0 0 IS2 IS1         select instruction table  Default Instruction Table (IS[1:0]
	write_com(0x12);	// 0 0 0 1 0 0 BS2 BS1         Bias select:00-11=1/4-1/7
	write_com(0x40);	//0 1 0 AC4-0 				  Set ICON RAM Address 
	write_com(0x30);	// 0 0 1 1 0 0 0 SLEEP
	write_com(0x6f);	// 0 1 1 0 Icon Bon Ron Fon  	 ICON/Power Control  
	write_com(0x70);	// 0 1 1 1 0 0 BT[1:0]         Set booster5
//==================================
	write_com(0x23);	// 0 0 1 0 0 0 IS2 IS1         select instruction table  Default Instruction Table (IS[1:0]
	write_com(0x81);	//1 0 0 0 0 0 0 1				 CT setting   ConstrstReg
	write_com(224);		//0 0 CT[5:0]
	write_com(0x82);	//1 0 0 0 0 0 1 0				 start line setting
	write_com(0x00);	//0 0 ST[5:0]
	//write_com(0xa4);	//1 0 1 0 RR[3:0]		2.0-9.5	   4=4 C=8
	write_com(0xa2);	//1 0 1 0 RR[3:0]		2.0-9.5	   4=4 C=8
//==================================
	write_com(0x22);	// 0 0 1 0 0 0 IS2 IS1         select instruction table  Default Instruction Table (IS[1:0]
	write_com(0x60);	// 0 1 1 0 0 0 INV AP
	write_com(0x11);	// 0 0 0 1 DH1-0 N1-0  		 DH1-0: Double Height on/off  N[1:0]: Display line number.
	write_com(0x4b);	// 0 1 0 0 OPR-0 SHLS SHLC 	